<?php

namespace App\Repositories\Model;

use App\Repositories\Contracts\RepositoryInterface;
use App\Repositories\Eloquent\Repository;

class ArticleRepository extends Repository
{
    /**
     * @return string
     */
    public function model(){
        return 'App\Model\Article';
    }

    /**
     * 获取正式发布的文章
     *
     * @param $status
     * @param int $pageNum
     * @return mixed
     */
    public function getFormalList($rowNum = 50){
        return $this->model->status()->paginate($rowNum);
    }

    public function admin(){
        return $this->model->admin();
    }

}